<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>JsDemo</title>

    <script>
        function print(){
            alert("hello world");
        }
    </script>
</head>
<body>
    <div id="box"></div>
    <button onclick="print()">点我</button>
    <button onclick="getElementById('demo').innerHTML=Date()">现在的时间是?</button>
    <p id="demo"></p>
</body>
</html>
